home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d14
/
cppwin10.arc
/
TEST.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1991-01-11
|
971b
|
44 lines
/***
Test program to test the Comptech classes for Windows programming.
Revisions:
10/22/90 KM Initial coding.
***/
#include <windows.h> // MS header
#include <stdlib.h> // for various string
#include <stdio.h> // and
#include <string.h> // memory functions
#include "cappl.hpp"
#include "cwind1.hpp"
CAppl *gAppl; // Application class
/***
The main part of a Windows program is WinMain().
***/
int PASCAL WinMain(HANDLE hInst, HANDLE hPrev, LPSTR cmdln, int cmd)
{
CWind1 *pWind;
int x;
// Create the Topmost window.
pWind = new CWind1(hInst, hPrev);
// Create the application class
gAppl = new CAppl(hInst, hPrev, pWind->GetHWnd());
// Set Application icon
gAppl->SetAppIcon("PROGICON");
// Set Application menu
gAppl->SetAppMenu("APPMENU");
// Run the application
x = gAppl->Run();
// Delete the application class
delete gAppl;
// Delete the top window.
delete pWind;
return x;
}